package com.lzhsite.technology.designPattern.decorate.CoffeeDemo;

public class Coffee implements IComponent
{
    private String name;
    private double price;

    public Coffee(String name, double price)
    {
        this.name = name;
        this.price = price;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public double getPrice()
    {
        return price;
    }

    public void setPrice(double price)
    {
        this.price = price;
    }

    public void showCoffee()
    {
        System.out.println(" 的 " + this.getName() + " 咖啡");
    }

    public double showPrice()
    {
        return this.getPrice();
    }
}
